package com.jwiki.app.jkeeper.repository.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.jwiki.app.jkeeper.repository.BaseMapper;
import com.jwiki.app.jkeeper.repository.bean.CategoryBean;
import com.jwiki.app.jkeeper.repository.bean.SubCategoryBean;
import com.jwiki.app.jkeeper.repository.model.CategoryModel;

@Mapper
public interface CategoryMapper extends BaseMapper<CategoryModel, Long> {

    List<CategoryBean> selectCategory(CategoryModel model);

    List<SubCategoryBean> selectSubCategory(CategoryModel model);

    int deleteCategory(List<Long> categoryIds);

    List<CategoryModel> getParentCategory(CategoryModel model);

}
